import { Route } from 'react-keeper'
const PageAddGrade = require('./subpages/addgrade');
const PageSanitarydetail = require('./subpages/sanitarydetail');
const PageAddGradeContent = require('./subpages/addgrade/subpages/addgradecontent');
const PageHome = {
    page: require('./PageHome'),
    route: () => {
        return (<div>
            <Route index path='/home' component={Home} />
        </div>)
    }

}
const Home = () => {
    return (
        <div>
            <Route index component={PageHome.page} />
            <Route name="打分列表" path="/addgrade(/:origin)" component={PageAddGrade} /> 
            <Route name="打分" path="/addgradecontent" component={PageAddGradeContent} />
            <Route name="详情" path="/detail" component={PageSanitarydetail} />     
        </div>)
}

export default PageHome;
